<!-- h2 stays for breadcrumbs -->
<h2 class="h2bread">
  <a href="<?php __e('siteadmin/dashboard');?>">Dashboard</a> &raquo; 
  <a href="<?php __e($cur_c);?>"><?php __e(ucwords($p_c));?></a> &raquo; 
  <a href="#" class="active"><?php __e(ucwords($frm_mode));?></a>
</h2>
<div id="main">
  <h3><?php echo $cont_title; ?></h3>
  <?php $this->load->view('admin_messages',$msg_info); ?>
<form action="<?php __e($frm_action);?>" method="post" name="<?php __e($frm_name);?>" id="<?php __e($frm_name);?>" class="frmreg" enctype="multipart/form-data">
  <input type="hidden" name="frm_token" id="frm_token" value="<?php __e($frm_token);?>" />
  <input type="hidden" name="frm_mode" id="frm_mode" value="<?php __e($frm_mode);?>" />
  <input type="hidden" name="frm_id" id="frm_id" value="<?php __e($frm_id);?>" />
  <fieldset>    
  <table border="0" cellpadding="0" cellspacing="0"  class="bk_tbl" width="100%">
    <tr>
            <td colspan="2"><h3>General Details</h3></td>
          </tr>
          <tr>
            <td><label for="txt_id"><span class="imp">&nbsp;</span>ID</label></td>
            <td><?php __earray($post_arr, 'os_category_id'); ?></td>
          </tr>
          <?php if($frm_mode == 'edit'){ $p_dt = __earray($post_arr, 'os_category_created',TRUE); ?>      
          <tr>
            <td><label for="txt_id"><span class="imp">&nbsp;</span>Created</label></td>
            <td><?php __e( __set_date($p_dt, 3) ); ?></td>
          </tr>                    
          <?php } ?>
          <tr>
            <td><label for="os_category_status"><span class="imp">&nbsp;</span>Status</label></td>
            <td>   
              <?php $chk = __earray($post_arr, 'os_category_status', TRUE); ?>
              <input type="checkbox" name="os_category_status" id="os_category_status" value="1" <?php if($chk == 1){__e('checked="checked"');}?> />              
            </td>
          </tr>
          <tr>
            <td><label for="os_category_name"><span class="imp">*</span>&nbsp;Subject/Category</label></td>
            <td>
              <input type="text" name="os_category_name" id="os_category_name" value="<?php __earray($post_arr, 'os_category_name'); ?>" maxlength="500" />              
            </td>
          </tr>
          
          <tr>
            <td><label for="os_category_descp"><span class="imp">&nbsp;</span>&nbsp;Description</label></td>
            <td>
              <textarea rows="5" cols="6" name="os_category_descp" id="os_category_descp" ><?php __earray($post_arr, 'os_category_descp'); ?></textarea>              
            </td>
          </tr>
          
          <tr>
            <td colspan="2" align="right">
              <input type="submit" name="btn_reg" id="btn_reg" value="Submit" class="button-submit"/>
              <input type="reset" name="btn_reset" id="btn_reset" value="Clear" class="button-submit"/>
            </td>
          </tr>
  </table>
    </fieldset>
</form>
</div>